//
//  VideoView.m
//  CustromPlayer
//
//  Created by qianfeng01 on 15-4-24.
//  Copyright (c) 2015年 千锋. All rights reserved.
//

#import "VideoView.h"

@implementation VideoView
- (void)setPlayer:(AVPlayer *)player
{
    AVPlayerLayer * layer = ( AVPlayerLayer *)self.layer;
    [layer setPlayer:player];
    
}
+(Class)layerClass
{
    // 指定view使用的layer层的类型,指定AVPlayer
    return [AVPlayerLayer class];

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
